package com.hht.baselibrary;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * Author: chenhu
 * Time: 2021/4/27 9:43
 * Description do somethings
 */
public class ARouterUtils {

    public static BaseFragment getFragment(String path) {

        return (BaseFragment) ARouter.getInstance()
                .build(path)
                .navigation();
    }

    public static BaseActivity getActivity(String path) {
        return (BaseActivity) ARouter.getInstance()
                .build(path)
                .navigation();
    }
}
